home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #11 / Software USA Volume 4.11.iso / mac / Educational / mac06 / usr / include / sys / sys⁄wait.h < prev   
Encoding:
Text File  |  1998-04-20  |  423 b   |  20 lines  |  [TEXT/SPM ]

  1. /* mac06©1997,1998 by HNS/DSITRI hns@computer.org
  2. ** sys/wait.h
  3. */
  4.  
  5. #pragma once
  6.  
  7. #define WNOHANG            (0x01)
  8. #define WUNTRACED        (0x02)
  9.  
  10. #define WIFEXITED(S)    (((S)&0x0300) == 0)
  11. #define WEXITSTATUS(S)    ((S)&0xff)
  12. #define WIFSIGNALED(S)    ((S)&0x0100)
  13. #define WTERMSIG(S)        ((S)&0xff)
  14. #define WIFSTOPPED(S)    ((S)&0x0200)
  15. #define WSTOPSIG(S)        ((S)&0xff)
  16.  
  17. int wait(int *status);
  18. int waitpid(int pid, int *status, int code);
  19.  
  20. /* EOF */